﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeHouse.Server.Dto;
using LeHouse.Server.Dal;
namespace LeHouse.Server.Service
{
    public class Collateral_ZoneService : BaseService<Collateral_Zone>
    {
        Collateral_ZoneDAL dal = new Collateral_ZoneDAL();
        /// <summary>
        /// 抵押物区位状况的业务逻辑层
        /// </summary>
        protected override GenericBaseDAL<Collateral_Zone> Dal
        {
            get { return new Collateral_ZoneDAL(); }
        }
        /// <summary>
        /// 根据报告号去查询抵押物区位的信息
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public Collateral_Zone Community(string P_ReportNumber)
        {
            return dal.Facilitybyid(P_ReportNumber);
        }
        /// <summary>
        /// 根据报告号去查询抵押物区位有该条记录
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public int count(string P_ReportNumber)
        {
            return dal.count(P_ReportNumber);
        }
    }
}
